Import diddy
Import model

Class TitleScreen Extends Screen
Field fpsCounter:FPSCounter

	Method New()
		name = "Title"
	End
	
	Method Start:Void()
		game.screenFade.Start(50, False)
	End
	
	Method Render:Void()
		Cls
		DrawText "TITLE SCREEN!", SCREEN_WIDTH2, SCREEN_HEIGHT2, 0.5, 0.5
		DrawText "Click to Play!", SCREEN_WIDTH2, SCREEN_HEIGHT2 + 20, 0.5, 0.5
		DrawText "Escape to Quit!", SCREEN_WIDTH2, SCREEN_HEIGHT2 + 40, 0.5, 0.5
		fpsCounter.Draw(0,50)
	End
	
	Method Update:Void()
		If MouseHit(MOUSE_LEFT)
			Seed = RealMillisecs()
		'	Local level:BonusLevel = New BonusLevel(MIX_MODE, 10, 1, 0.1)
			'_model._bonusScreen = New BonusScreen(level)
			game.screenFade.Start(50, True)
			game.nextScreen = _model._mazeScreen
		End
		
		If KeyHit(KEY_ESCAPE)
			game.screenFade.Start(50, True)
			game.nextScreen = game.exitScreen

		End
	End
End






